package com.mashen.ssh.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mashen.ssh.dao.IUserDao;
import com.mashen.ssh.model.User;

@Transactional(rollbackFor=java.lang.Exception.class)
@Service(value="userServiceImpl")
public class UserServiceImpl implements IUserService {

	@Resource(name="iuserDao")
	private IUserDao userDao;
	
	public void add() {
		User user = new User();
		user.setUserId(1);
		user.setUserName("admin");
		userDao.add(user);
		
	}


	
}
